package com.skillworld.webapp.model.department;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.skillworld.webapp.model.tutorial.Tutorial;

@Entity
@Table(name="BOEDep")
public class BOEDep
{
	  private long idDepartment;
	  private Tutorial tutorial1;
	  private Tutorial tutorial2;
	  private Tutorial tutorial3;
	  private Tutorial tutorial4;
	  private Tutorial tutorial5;

	  
	  public BOEDep() {
	  }


	@SequenceGenerator(name = "BOEDepIdGenerator", sequenceName = "BOEDepSeq")
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "BOEDepIdGenerator")
	@Column(name = "idDepartment")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idDepartment")
	public long getIdDepartment() {
		return idDepartment;
	}



	public void setIdDepartment(long idDepartment) {
		this.idDepartment = idDepartment;
	}

	@Column(name = "idTutorial1")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idTutorial")
	public Tutorial getTutorial1() {
		return tutorial1;
	}


	public void setTutorial1(Tutorial tutorial1) {
		this.tutorial1 = tutorial1;
	}


	@Column(name = "idTutorial2")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idTutorial")
	public Tutorial getTutorial2() {
		return tutorial2;
	}


	public void setTutorial2(Tutorial tutorial2) {
		this.tutorial2 = tutorial2;
	}

	@Column(name = "idTutorial3")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idTutorial")
	public Tutorial getTutorial3() {
		return tutorial3;
	}


	public void setTutorial3(Tutorial tutorial3) {
		this.tutorial3 = tutorial3;
	}

	@Column(name = "idTutorial4")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idTutorial")
	public Tutorial getTutorial4() {
		return tutorial4;
	}


	public void setTutorial4(Tutorial tutorial4) {
		this.tutorial4 = tutorial4;
	}


	@Column(name = "idTutorial5")
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "idTutorial")
	public Tutorial getTutorial5() {
		return tutorial5;
	}


	public void setTutorial5(Tutorial tutorial5) {
		this.tutorial5 = tutorial5;
	}
	
	
	

	  
	  
}
